package com.example.springboot_demo.pojo;


import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 产品对比信息对象 -主险
 * 
 * @ClassName MarketContrastProduct
 * @author xiaojy
 * @version V1.2.1
 * @since V1.2.1
 * @date 2018年10月22日 下午2:44:24
 */
@Document(collection = "MarketContrastProduct")
public class MarketContrastProduct {
	/**
	 * 对比产品ID,主键
	 */
	@Id
	private String constrastProductId;
	/**
	 * 产品ID
	 */
	private String productId;
	/**
	 * 产品简称
	 */
	private String shortProductName;
	/**
	 * 产品全称
	 */
	private String productName;
	/**
	 * 产品小图片
	 */
	private String productMinImgPath;
	/**
	 * 对比模板ID
	 */
	private String templateId;
	/**
	 * 产品对比简介
	 */
	private String contrastProductDesc;
	/**
	 * 保险公司ID
	 */
	private String companyId;
	/**
	 * 保险公司名称
	 */
	private String comName;
//	/**
//	 * 投保条件
//	 */
//	private MarketProductCondition condition;
	/**
	 * 产品状态  0-下架 1-上架
	 */
	private Integer productState;
	/**
	 * 上架时间
	 */
	private Date newTime;
	/**
	 * 保障类型
	 */
	private String protectionType;
//	/**
//	 * 对比副加险集合
//	 */
//	private List<MarketContrastRProduct> riderProducts;
	/**
	 * 排序
	 */
	private Integer contrastProSort;
	/**
	 * 创建人
	 */
	private String creator;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 修改人
	 */
	protected String editor;
	/**
	 * 修改时间
	 */
	protected Date editTime;
	
    /**
     * 算费方式 1-保额算保费 2-保费算保额
     */
	@Transient
    private Integer clacType;

	/**
	 * 停售 false否  true是
	 */
	protected Boolean isTemporarily ;

	/**
	 * 是否推荐对比 false否  true是
	 */
	protected Boolean isRecommend ;
	
	/**
	 * 是否上新  false否  true是
	 */
	@Transient
	protected Boolean isNew = false;

	public String getConstrastProductId() {
		return constrastProductId;
	}

	public void setConstrastProductId(String constrastProductId) {
		this.constrastProductId = constrastProductId;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public String getShortProductName() {
		return shortProductName;
	}

	public void setShortProductName(String shortProductName) {
		this.shortProductName = shortProductName;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getTemplateId() {
		return templateId;
	}

	public void setTemplateId(String templateId) {
		this.templateId = templateId;
	}

	public String getContrastProductDesc() {
		return contrastProductDesc;
	}

	public void setContrastProductDesc(String contrastProductDesc) {
		this.contrastProductDesc = contrastProductDesc;
	}

	public String getCompanyId() {
		return companyId;
	}

	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

//	public MarketProductCondition getCondition() {
//		return condition;
//	}
//
//	public void setCondition(MarketProductCondition condition) {
//		this.condition = condition;
//	}

	public Integer getProductState() {
		return productState;
	}

	public void setProductState(Integer productState) {
		this.productState = productState;
	}

	public Date getNewTime() {
		return newTime;
	}

	public void setNewTime(Date newTime) {
		this.newTime = newTime;
	}

	public String getProtectionType() {
		return protectionType;
	}

	public void setProtectionType(String protectionType) {
		this.protectionType = protectionType;
	}
//
//	public List<MarketContrastRProduct> getRiderProducts() {
//		return riderProducts;
//	}
//
//	public void setRiderProducts(List<MarketContrastRProduct> riderProducts) {
//		this.riderProducts = riderProducts;
//	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getEditor() {
		return editor;
	}

	public void setEditor(String editor) {
		this.editor = editor;
	}

	public Date getEditTime() {
		return editTime;
	}

	public void setEditTime(Date editTime) {
		this.editTime = editTime;
	}

	public String getProductMinImgPath() {
		return productMinImgPath;
	}

	public void setProductMinImgPath(String productMinImgPath) {
		this.productMinImgPath = productMinImgPath;
	}

	public String getComName() {
		return comName;
	}

	public void setComName(String comName) {
		this.comName = comName;
	}

	public Integer getContrastProSort() {
		return contrastProSort;
	}

	public void setContrastProSort(Integer contrastProSort) {
		this.contrastProSort = contrastProSort;
	}

	public Integer getClacType() {
		return clacType;
	}

	public void setClacType(Integer clacType) {
		this.clacType = clacType;
	}

	public Boolean getIsTemporarily() {
		return isTemporarily;
	}

	public void setIsTemporarily(Boolean isTemporarily) {
		this.isTemporarily = isTemporarily;
	}

	public Boolean getIsRecommend() {
		return isRecommend;
	}

	public void setIsRecommend(Boolean isRecommend) {
		this.isRecommend = isRecommend;
	}

	public Boolean getIsNew() {
		return isNew;
	}

	public void setIsNew(Boolean isNew) {
		this.isNew = isNew;
	}
	
}
